package counter;
import java.util.concurrent.atomic.AtomicLong;

public class AtomicCounter {

	private AtomicLong counter = new AtomicLong(0);

	public void reset() {
		counter.set(0);
	}

	public void increment() {
		counter.incrementAndGet();
	}

	public long getCounter() {
		return counter.longValue();
	}

}
